<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<h2>Create Pizza</h2>
<form:form commandName="pizza">
    <input type="hidden" name="_flowExecutionKey"
           value="${flowExecutionKey}"/>

    <b>Size: </b><br/>

    <form:radiobutton path="size"
                      label="Small (12-inch)" value="SMALL"/><br/>
    <form:radiobutton path="size"
                      label="Medium (14-inch)" value="MEDIUM"/><br/>
    <form:radiobutton path="size"
                      label="Large (16-inch)" value="LARGE"/><br/>
    <form:radiobutton path="size"
                      label="Ginormous (20-inch)" value="GINORMOUS"/>
    <br/>
    <br/>

    <b>Toppings: </b><br/>
    <form:checkboxes path="toppings" items="${toppingsList}" delimiter="<br/>"/><br/><br/>
    <!-- 注意delimiter直接是<br/> 而非 &lt;br&gt; -->


    <input type="submit" class="button"
           name="_eventId_addPizza" value="Continue"/>
    <input type="submit" class="button"
           name="_eventId_cancel" value="Cancel"/>
</form:form>
</div>
